<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<logic:present name="menuDTO">
    <ul class="toolList">
    <logic:iterate name="menuDTO" property="menus" id="menu">
        <logic:iterate name="menu" property="itemList" id="item">
            <logic:equal name="item" property="isVisible" value="true">
                <logic:equal name="item" property="isEnabled" value="true">
                    <li class="enabled">
                    <html:link action="processMenuButton.do" paramId="button" paramName="item" paramProperty="name">
                        <logic:equal name="item" property="name" value="file-home">
                            <img src="<html:rewrite page='/icons/home-32x32.png'/>" alt="Go to home" title="Go to home">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="file-logout">
                            <img src="<html:rewrite page='/icons/exit-32x32.png'/>" alt="Logout" title="Logout">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-node">
                            <img src="<html:rewrite page='/icons/node-new-32x32.png'/>" alt="Create new node" title="Create new node">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-sprint">
                            <img src="<html:rewrite page='/icons/sprint-new-32x32.png'/>" alt="Create new sprint" title="Create new sprint">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-project">
                            <img src="<html:rewrite page='/icons/project-new-32x32.png'/>" alt="Create new project" title="Create new project">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-anchor">
                            <img src="<html:rewrite page='/icons/anchor-new-32x32.png'/>" alt="Create new anchor" title="Create new anchor">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-action">
                            <img src="<html:rewrite page='/icons/action-new-32x32.png'/>" alt="Create new action" title="Create new action">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-issue">
                            <img src="<html:rewrite page='/icons/issue-new-32x32.png'/>" alt="Create new issue" title="Create new issue">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-organisation">
                            <img src="<html:rewrite page='/icons/organisation-new-32x32.png'/>" alt="Create new organisation" title="Create new organisation">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-department">
                            <img src="<html:rewrite page='/icons/department-new-32x32.png'/>" alt="Create new department" title="Create new department">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-person">
                            <img src="<html:rewrite page='/icons/person-new-32x32.png'/>" alt="Create new person" title="Create new person">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-user">
                            <img src="<html:rewrite page='/icons/user-new-32x32.png'/>" alt="Create new user" title="Create new user">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-group">
                            <img src="<html:rewrite page='/icons/group-new-32x32.png'/>" alt="Create new group" title="Create new group">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-task-type">
                            <img src="<html:rewrite page='/icons/task-new-32x32.png'/>" alt="Create new task type" title="Create new task type">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-state">
                            <img src="<html:rewrite page='/icons/state-new-32x32.png'/>" alt="Create new state" title="Create new state">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-status">
                            <img src="<html:rewrite page='/icons/status-new-32x32.png'/>" alt="Create new status" title="Create new status">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-role">
                            <img src="<html:rewrite page='/icons/role-new-32x32.png'/>" alt="Create new role" title="Create new role">
                        </logic:equal>
                         <logic:equal name="item" property="name" value="create-user-access">
                            <img src="<html:rewrite page='/icons/access-new-32x32.png'/>" alt="Create new user access" title="Create new user access">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-group-access">
                            <img src="<html:rewrite page='/icons/groupaccess-new-32x32.png'/>" alt="Create new group access" title="Create new group access">
                        </logic:equal>
                    </html:link>
                    </li>
                </logic:equal>
                <logic:equal name="item" property="isEnabled" value="false">
                    <li class="disabled">
                        <logic:equal name="item" property="name" value="create-node">
                            <img src="<html:rewrite page='/icons/node-new-grey-32x32.png'/>" alt="Create new node" title="Create new node">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-sprint">
                            <img src="<html:rewrite page='/icons/sprint-new-grey-32x32.png'/>" alt="Create new sprint" title="Create new sprint">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-project">
                            <img src="<html:rewrite page='/icons/project-new-grey-32x32.png'/>" alt="Create new project" title="Create new project">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-anchor">
                            <img src="<html:rewrite page='/icons/anchor-new-grey-32x32.png'/>" alt="Create new anchor" title="Create new anchor">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-action">
                            <img src="<html:rewrite page='/icons/action-new-grey-32x32.png'/>" alt="Create new action" title="Create new action">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-issue">
                            <img src="<html:rewrite page='/icons/issue-new-grey-32x32.png'/>" alt="Create new issue" title="Create new issue">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-organisation">
                            <img src="<html:rewrite page='/icons/organisation-new-grey-32x32.png'/>" alt="Create new organisation" title="Create new organisation">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-department">
                            <img src="<html:rewrite page='/icons/department-new-grey-32x32.png'/>" alt="Create new department" title="Create new department">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-person">
                            <img src="<html:rewrite page='/icons/person-new-grey-32x32.png'/>" alt="Create new person" title="Create new person">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-user">
                            <img src="<html:rewrite page='/icons/user-new-grey-32x32.png'/>" alt="Create new user" title="Create new user">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-group">
                            <img src="<html:rewrite page='/icons/group-new-grey-32x32.png'/>" alt="Create new group" title="Create new group">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-task-type">
                            <img src="<html:rewrite page='/icons/task-new-grey-32x32.png'/>" alt="Create new task type" title="Create new task type">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-state">
                            <img src="<html:rewrite page='/icons/state-new-grey-32x32.png'/>" alt="Create new state" title="Create new state">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-status">
                            <img src="<html:rewrite page='/icons/status-new-grey-32x32.png'/>" alt="Create new status" title="Create new status">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-role">
                            <img src="<html:rewrite page='/icons/role-new-grey-32x32.png'/>" alt="Create new role" title="Create new role">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-user-access">
                            <img src="<html:rewrite page='/icons/access-new-grey-32x32.png'/>" alt="Create new user access" title="Create new user access">
                        </logic:equal>
                        <logic:equal name="item" property="name" value="create-group-access">
                            <img src="<html:rewrite page='/icons/groupaccess-new-grey-32x32.png'/>" alt="Create new group access" title="Create new group access">
                        </logic:equal>
                    </li>
                </logic:equal>
            </logic:equal>
        </logic:iterate>
    </logic:iterate>
    </ul>
</logic:present>
